package com.project.easy.common.framework.web.service.impl;

import com.project.easy.common.db.mybatisplus.core.service.AbstractQueryCurrentUser;
import  com.project.easy.common.util.dto.UserInfo;
import org.springframework.stereotype.Component;

/**
 * @author GreatorMan.cool
 * @copyright: Copyright (c) 2020
 * @company: 扬起科技有限公司
 * @date 2021/10/30 22:32
 * @description: 默认获取当前用户信息
 */
@Component
public class DefaultQueryCurrentUser extends AbstractQueryCurrentUser {
    /**
     * 获取当前用户信息
     * @return 返回用户信息
     */
    @Override
    public UserInfo queryCurrentUser() {
        return new UserInfo("超级管理员", "admin", 1L);
    }
}
